// 业务总览相关接口

import services from '../createServices';

// 业务总览
export const report = {
  filter: params => services.post('/data-report-overview/index', { params, isLoading: true }),
  riskTrend: params => services.post('/data-report-overview/risk-trend', { params, isLoading: true }),
  strategyTrend: params => services.post('/data-report-overview/strategy-trend', { params, isLoading: true }),
  // ruleTrend: params => services.post('/data-report-overview/rule-trend', { params, isLoading: true }),
  ruleTop: params => services.post('/data-report-overview/rule-top', { params, isLoading: true }),
  riskTop: params => services.post('/data-report-overview/requests', { params, isLoading: true }),
  // ruleList: params => services.post('/data-report-overview/rule-all', { params, isLoading: true }),
  strategyType: params => services.post('/data-report-overview/strategy-type-list', { params, isLoading: true }),
  strategyList: params => services.post('/data-report-overview/strategy-all', { params, isLoading: true }),
  getQueryParams: params => services.post('/data-report-overview/get-query-params', { params, isLoading: true }),
  requestTrend: (params) => services.post('/data-report-overview/request-trend', { params, isLoading: true }), // 请求趋势统计
  ruleTrend: (params) => services.post('/data-report-overview/rule-trend-analysis', { params, isLoading: true}), // 规则命中
  strategyAnalysis: (params) => services.post('/data-report-overview/strategy-trend-analysis', { params, isLoading: true}), // 策略,组件命中
  allVersions: (params) => services.post('/data-report-overview/all-version', { params }), // 策略的发布版本
  strategyReleaseAll: (params) => services.post('/data-report-overview/all-strategy', { params, isLoading: true }),
  all: (params) => services.post('/data-report-overview/all-component', { params, isLoading: true }),
  ruleList: (params) => services.post('/data-report-overview/all-rule', { params, isLoading: true }),
  riskRanking: (params) => services.post('/data-report-overview/risk-ranking', { params, isLoading: true }),
};
